package com.service.impl;

import com.dao.impl.SearchDaoImpl;
import com.dao.intf.SearchDao;
import com.entity.Blog;
import com.entity.User;
import com.service.intf.SearchService;

import java.util.List;

public class SearchServiceImpl implements SearchService {
   private SearchDao searchDao=new SearchDaoImpl();

    @Override
    public List<User> searchUser(String searchContent) {
        return searchDao.searchUser(searchContent);
    }

    @Override
    public List<Blog> searchBlog(String searchContent) {
        return searchDao.searchBlog(searchContent);
    }
}
